const mongoose = require('mongoose')

const competitionSchema = new mongoose.Schema({
  title: String,
  range: Number,
  has_work: Boolean,
  work_type: Number,
  start_date: String,
  end_date: String,
  stage: Number,
  host: String,
  assist: Array,
  award: Array,
})

const Competition = mongoose.Model('competitions', competitionSchema)

module.exports = Competition